@extends('admin.layouts.base')
@section('content')
    <style>
        td {
            text-align: right;
        }
    </style>
    <div class="row">
        <div class="col-md-8 col-md-offset-2">

            {{--提示信息弹出框--}}
            @include('admin.partials.errors')
            @include('admin.partials.success')
            {{--提示信息弹出框--}}

            <div class="box box-success">

                <div class="box-header">
                    <h1 class="box-title">
                        安稳认证申请
                    </h1>
                </div>

                <form action="{{ url('/admin/setting/audit') }}" method="post" enctype="multipart/form-data">

                    {{--token--}}
                    <input type="hidden" name="_token" value="{{ csrf_token() }}">
                    {{--<div class="form-group">--}}
                        {{--{!! Form::label('image', '企业LOGO:') !!}--}}
                        {{--<input type="file" id="img" name="image">--}}
                    {{--</div>--}}
                    {{--原图:--}}
                    {{--<div class="form-group">--}}
                        {{--<img src="" width="70" height="75">--}}
                    {{--</div>--}}
                    <table class="table">
                        <tr>
                            <td width="120">企业LOGO:</td>
                            <td>
                                <input type="file" class="form-control" name="company_logo" required
                                       value=""/>
                            </td>
                        </tr>
                        <tr>
                            <td ></td>
                            <td style="vertical-align:bottom; text-align:left;">
                                <img src="{{ old('company_logo') ?: $company->company_logo ?: '' }}" width="70" height="75">
                            </td>
                        </tr>
                        <tr>
                            <td width="120">企业主体名称:</td>
                            <td>
                                <input type="text" class="form-control" name="company_name" required
                                       value="{{ old('company_name') ?: $company->company_name ?: '' }}"/>
                            </td>
                        </tr>
                        <tr>
                            <td>企业简称:</td>
                            <td>
                                <input type="text" class="form-control" name="short_name" required
                                       value="{{ old('short_name') ?: $company->short_name ?: '' }}"/>
                            </td>
                        </tr>
                        <tr>
                            <td>企业成立时间:</td>
                            <td>
                                <input type="date" class="form-control" name="founding_time" required
                                       value="{{ old('founding_time') ?: $company->founding_time ?: '' }}"/>
                            </td>
                        </tr>
                        {{--<tr>--}}
                            {{--<td>营业执照号:</td>--}}
                            {{--<td>--}}
                                {{--<input type="text" class="form-control" name="biz_license_no" required--}}
                                       {{--value="{{ old('biz_license_no') ?: $company->biz_license_no?: '' }}"/>--}}
                            {{--</td>--}}
                        {{--</tr> --}}
                        <tr>
                            <td>管理者真实姓名:</td>
                            <td>
                                <input type="text" class="form-control" name="legal_person" required
                                       value="{{ old('legal_person') ?: $company->legal_person ?: '' }}"/>
                            </td>
                        </tr>
                        <tr>
                            <td>管理者手机号:</td>
                            <td>
                                <input type="text" class="form-control" name="legal_phone" required
                                       value="{{ old('legal_phone') ?: $company->legal_phone ?: '' }}"/>
                            </td>
                        </tr>
                        <tr>
                            <td >公司简介:</td>
                            <td style=" text-align: left;">
                                {{--<input type="text" class="form-control" name="biz_license_no" required--}}
                                       {{--value="" />--}}
                                <textarea rows="5" cols="88" name="company_desc">{{ old('company_desc') ?: $company->company_desc ?: '' }}</textarea>
                            </td>
                        </tr>

                        <tr>
                            <td>官网地址:</td>
                            <td>
                                <input type="text" class="form-control" name="webiste_url" required
                                       value="{{ old('webiste_url') ?: $company->webiste_url ?: '' }}"/>
                            </td>
                        </tr>
                        <tr>
                            <td>咨询电话:</td>
                            <td>
                                <input type="text" class="form-control" name="advisory_telephone" required
                                       value="{{ old('advisory_telephone') ?: $company->advisory_telephone ?: '' }}"/>
                            </td>
                        </tr>

                        <tr>
                            <td></td>
                            <td>
                                <button class="btn btn-warning form-control">递交</button>
                            </td>
                        </tr>
                    </table>

                </form>

            </div>
        </div>
    </div>

@endsection